package com.simple.crawler.constant;

public enum CrawlerStatus {

    READY("ready", "就绪"),
    RUNNING("running", "执行中"),
    PAUSE("pause", "暂停");

    private String flag;

    private String desc;

    CrawlerStatus(String flag, String desc) {
        this.flag = flag;
        this.desc = desc;
    }

    public String getFlag() {
        return flag;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "CrawlerStatus{" +
                "flag='" + flag + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

}
